#pragma once
#ifndef _CORE_
#define _CORE_

#include <vector>
#include "solid_barrier.h"
#include "torch.h"
#include "world.h"
#include "draw.h"
#include "rectangle.h"

class Core {
private:
    World* world_;
    SolidBar* sb_;
    Torch* torch_;
    Draw* draw_;

    SDL_Event* event_;
    const int MIN_FPS_TIME_ = 16;
    long fps_time_ = 0;
    bool IsQuit_ = false;
    void IsQuit();
public:
    //std::vector<SDL_Point> points;
    Core();
    ~Core();
    ZOOM SetZoom(int x, int y);
    void EventHandle();
    void EventLoop();
};

#endif